class Example{
    
    static void main(String[] args){
        int x = 5;
        long y = 100L;
        float a = 10.56f;
        double d = 10.5e40;
        BigInteger bi = 30g;
        BigDecimal bd = 3.5g;

        println("x=$x");
        println("y=$y");
        println("a=$a");
        println("x=$x");
        println("bi=$bi");
        println("bd=$bd");

        // int ra = 5;
        // int rb = 3;
        // ra (%)= rb;

        // println("ra=$ra,rb=$rb,ra (%)=rb, ra=$ra");

        def range = 1..10;
        println(range);
        println(range.get(2)); // 索引为2的值
    }

}